package FinalProject

class searchService {

    def searchUser(String name) {
       def results = SiteUser.findAllByNameIlike("%" + name + "%")
       return results
    }

    def searchGame(String name) {
        println(name)
        def results = Game.findAllByNameIlike("%" + name + "%")
        return results
    }

    def searchPlatform(String name) {
        def results = Platform.findAllByNameIlike("%" + name + "%")
        return results
    }
}
